﻿using System;
using System.Collections.Generic;
using System.Web;


namespace MyWebPagesStarterKit
{
    /// <summary>
    /// Summary description for LoginForm
    /// </summary>
    public class LoginForm : Section<LoginForm.Data>
    {
        public LoginForm() : base() { }
        public LoginForm(string id) : base(id) { }

        public override List<SearchResult> Search(string searchString, WebPage page)
        {
            List<SearchResult> list = new List<SearchResult>();
            return list;
        }

        public override Position Position
        {
            get
            {
                return _data.Position;
            }
            set
            {
                _data.Position = value;
            }
        }

        public override bool IsOnline
        {
            get
            {
                return _data.IsOnline;
            }
            set
            {
                _data.IsOnline = value;
            }
        }

        public class Data
        {
            public Position Position = Position.CENTER; //Need to be specified by setup
            public bool IsOnline = true;
        }
    }
}
